﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="Manager_ProductStore_test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="../../Pub/Module/Calendar_Submit.ascx" TagName="Calendar" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>

    <script src="<%= ResolveClientUrl("~/")%>Pub/Js/JQ/jquery-1.4.2.min.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
   var Url='<%= ResolveClientUrl("~/")%>';
                
              function FindPD()
              {
                      $(document).ready(function() 
                     {         
                           alert("aaa");
                    });   
              } 
 
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table border="1" cellpadding="0" cellspacing="0" style="width: 100%">
            <tr>
                <td style="width: 80%">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td valign="top">
                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" ShowMessageBox="True"
                                    ShowSummary="False" ValidationGroup="grCustomer" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table border="0" cellpadding="1" cellspacing="0" style="width: 100%">
                                    <tr>
                                        <td align="right" class="td_GuestInfo" nowrap="nowrap" style="width: 87px">
                                            Tên:</td>
                                        <td align="left" colspan="3" nowrap="nowrap">
                                            <asp:TextBox ID="txtHoTen" runat="server" BackColor="#EAEAEA" CssClass="txt_Product"
                                                ReadOnly="True" ValidationGroup="grCustomer" Width="85%"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtHoTen"
                                                ErrorMessage="Nhập vào tên khách hàng" ForeColor="Red" ValidationGroup="grCustomer">*</asp:RequiredFieldValidator>
                                            <img alt="Tạo user mới" onclick="fnAddUser()" src="../../Images/Icon/add_icon.png"
                                                style="cursor: pointer" title="Chọn User" />
                                            <img alt="chọn user đã tồn tại" onclick="fnViewUser()" src="../../Images/Icon/application get Icon.jpg"
                                                style="cursor: pointer" title="Chọn User" width="16" /></td>
                                    </tr>
                                    <tr style="color: #000000">
                                        <td align="right" class="td_GuestInfo" nowrap="nowrap" style="width: 87px">
                                            Địa chỉ:</td>
                                        <td align="left" colspan="3" nowrap="nowrap">
                                            <asp:TextBox ID="txtDiaChi" runat="server" BackColor="#EAEAEA" CssClass="txt_Product"
                                                ReadOnly="True" ValidationGroup="grCustomer" Width="90%"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtDiaChi"
                                                ErrorMessage="Nhập vào địa chỉ" ForeColor="Red" ValidationGroup="grCustomer">*</asp:RequiredFieldValidator></td>
                                    </tr>
                                    <tr style="color: #000000">
                                        <td align="right" class="td_GuestInfo" nowrap="nowrap" style="width: 87px">
                                            Điện thoại:</td>
                                        <td align="left" nowrap="nowrap">
                                            <asp:TextBox ID="txtDienThoai" runat="server" BackColor="#EAEAEA" CssClass="txt_Product"
                                                ReadOnly="True" ValidationGroup="grCustomer" Width="150px"></asp:TextBox>
                                            &nbsp;
                                        </td>
                                        <td align="left" nowrap="nowrap" style="width: 10%">
                                            <asp:Label ID="Label2" runat="server" Text="Mã số thuế:"></asp:Label></td>
                                        <td align="left" nowrap="nowrap">
                                            <asp:TextBox ID="txtTaxNo" runat="server" BackColor="#EAEAEA" CssClass="txt_Product"
                                                ReadOnly="True" ValidationGroup="grCustomer"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td align="right" class="td_GuestInfo" nowrap="nowrap" style="width: 87px">
                                            Ghi chú</td>
                                        <td align="left" colspan="3" nowrap="nowrap">
                                            <asp:TextBox ID="TextBox1" runat="server" BackColor="#EAEAEA" CssClass="txt_Product"
                                                ReadOnly="True" ValidationGroup="grCustomer" Width="90%"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td align="left" colspan="4" nowrap="nowrap">
                                        </td>
                                    </tr>
                                </table>
                                <br />
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    &nbsp;<table border="0" cellpadding="1" cellspacing="0" style="width: 100%">
                        <tr>
                            <td align="right">
                                Ngày:</td>
                            <td>
                                <uc1:Calendar ID="Calendar1" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <asp:GridView ID="grvMaster" runat="server" AutoGenerateColumns="False" BorderColor="#407db3"
            BorderWidth="1px" CellPadding="1" PageSize="20" Width="100%" OnRowDataBound="grvMaster_RowDataBound">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        STT</HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="hplOrderID" runat="server" Font-Bold="true" ForeColor="green" Text=''></asp:Label>
                    </ItemTemplate>
                    <ItemStyle CssClass="cssBorderGrv" HorizontalAlign="Center" Width="1%" Wrap="False" />
                    <HeaderStyle CssClass="cssBorderGrv" Wrap="False" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        Tên Hàng</HeaderTemplate>
                    <ItemTemplate>
                        <asp:TextBox ID="txtPDName" runat="server" Width="95%" onkeyup='FindPD()'></asp:TextBox>
                    </ItemTemplate>
                    <ItemStyle CssClass="cssBorderGrv" Wrap="False" HorizontalAlign="Center" />
                    <HeaderStyle CssClass="cssBorderGrv" Width="30%" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        Kho hàng</HeaderTemplate>
                    <ItemTemplate>
                        <asp:DropDownList ID="ddlStore" runat="server">
                        </asp:DropDownList>
                    </ItemTemplate>
                    <ItemStyle CssClass="cssBorderGrv" Wrap="False" HorizontalAlign="Center" />
                    <HeaderStyle CssClass="cssBorderGrv" Width="15%" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        Số lượng</HeaderTemplate>
                    <ItemTemplate>
                        <asp:TextBox ID="txtQuantity" runat="server" Width="50px" Style="text-align: right"></asp:TextBox>
                    </ItemTemplate>
                    <ItemStyle CssClass="cssBorderGrv" Wrap="False" HorizontalAlign="Center" />
                    <HeaderStyle CssClass="cssBorderGrv" Width="10%" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        Đơn giá</HeaderTemplate>
                    <ItemTemplate>
                        <asp:TextBox ID="txtPrice" runat="server" Style="text-align: right"></asp:TextBox>
                    </ItemTemplate>
                    <ItemStyle CssClass="cssBorderGrv" Wrap="False" HorizontalAlign="Center" />
                    <HeaderStyle CssClass="cssBorderGrv" Width="10%" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        Thành tiền
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblTotal" runat="server" Style="text-align: right"></asp:Label>
                    </ItemTemplate>
                    <ItemStyle CssClass="cssBorderGrv" HorizontalAlign="Center" Width="15%" />
                    <HeaderStyle CssClass="cssBorderGrv" />
                </asp:TemplateField>
            </Columns>
            <RowStyle CssClass="gvRowStyle" Height="10px" />
            <HeaderStyle CssClass="cssHeader" Height="20px" HorizontalAlign="Center" Wrap="False" />
            <AlternatingRowStyle CssClass="gvAlternatingRowStyle" Height="10px" />
        </asp:GridView>
    </form>
</body>
</html>
